<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>{{ $title }}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    @section('css')
        <link rel="stylesheet" href="/app/css/base.css">
    @show
</head>
<body>
<header>
    <div class="container">
        <div class="row">
            <div class="col-xs-12">
                <div class="Topbar">
                    <div class="Topbar-logo">
                        <a href="/">
                            <img src="{{ $logo }}" alt="site logo">
                        </a>
                    </div>
                    <div class="Topbar-hotline">
                        <dl>
                            <dt class="Topbar-hotlineTitle">全国服务热线</dt>
                            <dd class="Topbar-hotlinePhone">{{ $hotline }}</dd>
                        </dl>
                    </div>
                </div>
                <!-- ./Topbar -->
            </div>
        </div>
    </div>

    <div class="Navbar">
        <ul class="Navbar-innerBar">
            @foreach( $navItems as $item )
                <li class="Navbar-item">
                    <a href="{{ $item["http_url"] }}" class="drop-button" style="width: 122px">{{ $item["name"] }}</a>
                    @if(isset($item["child"]) and count($item["child"]) > 0)
                        <ul class="Navbar-dropdown">
                            @foreach( $item["child"] as $subItem )
                                <li class="Navbar-dropdownItem"><a
                                            href="{{ $subItem["http_url"] }}">{{ $subItem["name"] }}</a></li>
                            @endforeach
                        </ul>
                @endif
            @endforeach
        </ul>
    </div>
    <!-- ./Navbar -->
</header>

@section('main')
@show

<footer>
    <div class="Footer">
        <span class="Footer-company">版权所有: {{ $company->value }}</span><span class="Footer-icp">{{ $icp->value }}</span>
    </div>
</footer>
@section('js')
    <script src="/plugins/jquery/dist/jquery.min.js"></script>
    <script src="/app/js/base.js"></script>
@show
</body>
</html>